﻿using Basic.FormCollect;
using Basic.FormModel.DB;
using Basic.FormRemoteModel;
using Basic.FormRemoteModel.QueryControl.Model;
using Basic.FormService.Interface;
using WeDonekRpc.Client;

namespace Basic.FormService.lmpl
{
    internal class QueryControlService : IQueryControlService
    {
        private readonly IQueryControlCollect _Service;

        public QueryControlService ( IQueryControlCollect service )
        {
            this._Service = service;
        }

        public QueryControlDto[] GetEnables ( LayoutLocation location )
        {
            DBQueryControl[] list = this._Service.GetEnables(location);
            return list.ConvertMap<DBQueryControl, QueryControlDto>();
        }
    }
}
